@model ShivamEMR.Model.Domain.ContactsDomain.Address

@{
    ViewBag.Title = "Delete";
}

<h2>Delete</h2>

<h3>Are you sure you want to delete this?</h3>
<fieldset>
    <legend>Address</legend>

    <div class="display-label">Address1</div>
    <div class="display-field">@Model.Address1</div>

    <div class="display-label">Address2</div>
    <div class="display-field">@Model.Address2</div>

    <div class="display-label">Landmark</div>
    <div class="display-field">@Model.Landmark</div>

    <div class="display-label">ZipCode</div>
    <div class="display-field">@Model.ZipCode</div>

    <div class="display-label">Notes</div>
    <div class="display-field">@Model.Notes</div>

    <div class="display-label">AddressType</div>
    <div class="display-field">@Html.DisplayTextFor(_ => Model.AddressType).ToString()</div>

    <div class="display-label">City</div>
    <div class="display-field">@Html.DisplayTextFor(_ => Model.City).ToString()</div>

    <div class="display-label">Territory</div>
    <div class="display-field">@Html.DisplayTextFor(_ => Model.Territory).ToString()</div>

    <div class="display-label">Country</div>
    <div class="display-field">@Html.DisplayTextFor(_ => Model.Country).ToString()</div>

    <div class="display-label">Company</div>
    <div class="display-field">@(Model.Company == null ? "None" : Model.Company.Name)</div>

    <div class="display-label">Branch</div>
    <div class="display-field">@(Model.Branch == null ? "None" : Model.Branch.Name)</div>

    <div class="display-label">Persons</div>
    <div class="display-field">@(Model.Persons == null ? "None" : Model.Persons.Count.ToString())</div>
</fieldset>
@using (Html.BeginForm()) {
    <p>
        <input type="submit" value="Delete" /> |
        @Html.ActionLink("Back to List", "Index")
    </p>
}


